<?
	include_once('inc_config.php');
	$db_edit = new db_query('SELECT * 
							 FROM get_new_db
							 WHERE gen_cat_id = 6 AND gen_id > 1137');
	$edit    = $db_edit->resultArray();
	foreach ($edit as $key => $value) {
		$nums = strpos($value['gen_link'],'caia.vn');
		if($nums){
			$db_update = $value['gen_details'].'</div>';
			$db_exc = new db_execute("UPDATE get_new_db 
									  SET gen_details = '".$db_update."'
									  WHERE gen_id = ".$value['gen_id']."");
		}
	}
?>